﻿Imports Testeitor.DAO
Imports Testeitor.Entidades

Public Class Sesion

    Private _testietor As TestieitorGui

    Public Sub New(ByRef testietor As TestieitorGui)
        InitializeComponent()
        _testietor = testietor
    End Sub

    Private Sub btnAceptar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAceptar.Click
        If String.Equals(Me.txtUsername.Text, "admin") And String.Equals(Me.txtPassword.Text, "admin") Then
            _testietor.habilitar(True)
            _testietor.Controls.RemoveAt(_testietor.Controls.Count - 1)
        End If
    End Sub
End Class
